﻿namespace HashFoo.Rest.Server
{
    /// <summary>
    /// Interface that defines required functions for server invoked forms authentication.
    /// </summary>
    public interface IFormsAuthenticator
    {
        /// <summary>
        /// Set an authentication cookie on the client.
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="isPersistent"></param>
        void SetAuthCookie(string userName, bool isPersistent);

        /// <summary>
        /// Remove the authentication cookie.
        /// </summary>
        void SignOut();
    }
}